
import com.mapper.ClasMapper;
import com.pojo.Clas;
import com.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class ClassTest {
    @Test
    public  void selectClassByIdTest(){
        SqlSession session = MyBatisUtils.getSession();
        ClasMapper mapper = session.getMapper(ClasMapper.class);
        Clas clas= mapper.selectClassById(2);
        System.out.println(clas);
        session.close();
    }
}
